import { CoolCommException } from "@cool-midway/core";
import { Rule, RuleType } from "@midwayjs/validate";

export class BeProviderDTO {
    @Rule(RuleType.string().required().error(new CoolCommException('身份证号不能为空')))
    idCard: string;

    @Rule(RuleType.array().items(RuleType.string().allow('driver', 'guide', 'other')))
    type: ('driver' | 'guide' | 'other')[];
}